package com.hs.srm.admin.modules.pricemanagement.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;


/**
 * @author ych
 * @date 2019年8月12日
 */
@Setter
@Getter
@TableName("npro_distribute_view")
@ToString
public class NPRODistributeViewEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    public NPRODistributeViewEntity() {
        super();
    }

    /**
     * 非生产性视图id：历史价格表id或询价单id
     */
    @TableId(value = "view_id")
    @TableField("view_id")
    @Excel(name = "非生产性视图id", orderNum = "1")
    private java.lang.String viewId;

    /**
     * 供应商编码
     */
    @TableField("vendor_code")
    @Excel(name = "供应商编码", orderNum = "2")
    private String vendorCode;

    /**
     * 临时供应商编码
     */
    @TableField(exist = false)
    private String srmCode;
    /**
     * 供应商名称
     */
    @TableField("vendor_name")
    @Excel(name = "供应商名称", orderNum = "3")
    private String vendorName;

    /**
     * 单价
     */
    @TableField("price")
    @Excel(name = "单价", orderNum = "4")
    private java.math.BigDecimal price;

    /**
     * 价格单位
     */
    @TableField("price_unit")
    @Excel(name = "价格单位", orderNum = "5")
    private String priceUnit;

    /**
     * 销售/购买税代码
     */
    @TableField("tax_code")
    @Excel(name = "销售/购买税代码", orderNum = "7")
    private String taxCode;

    /**
     * 采购申请编码
     */
    @TableField("request_code")
    @Excel(name = "采购申请编码", orderNum = "12")
    private String requestCode;

    /**
     * 币种
     */
    @TableField("currency")
    @Excel(name = "币种", orderNum = "14")
    private String currency;

    /**
     * 工厂
     */
    @TableField("werks")
    @Excel(name = "工厂", orderNum = "15")
    private String werks;

    /**
     * 物料编码
     */
    @TableField("material_code")
    @Excel(name = "物料编码", orderNum = "16")
    private String materialCode;

    /**
     * 物料描述
     */
    @TableField("material_desc")
    @Excel(name = "物料描述", orderNum = "17")
    private String materialDesc;

    /**
     * 付款条件
     */
    @TableField(exist = false)
    private String payCondition;

    /**
     * 供应商类型：0，正式供应商；1，临时供应商
     */
    @TableField(exist = false)
    private Integer vendorKind;

    /**
     * 工厂
     */
    @TableField("comp_code")
    @Excel(name = "公司代码", orderNum = "15")
    private String compCode;

}
